Analysis Of Nakamoto Consensus